import {request,serverurl} from './requst.js'
export function getcart(data) {
	return request(serverurl+'/system/cart/list?pageNum=1&pageSize=42', 'get', data)

}
export function commitcart(data) {
	return request(serverurl+"/system/cart", 'put',data,'application/json;charset=UTF-8')
}
export function addcart(data) {
	return request(serverurl+"/system/cart", 'post',data,'application/json;charset=UTF-8')
}
export function removecartbyids(ids) {
	return request(serverurl+"/system/cart"+ids, 'delete',data,'application/json;charset=UTF-8')
}